<div class="page_function">
  <div class="info">
    <h3>{$action_name}跳转页面</h3>
    <small>使用以下功能进行{$action_name}行跳转页面操作</small> 
  </div>
</div>
<div class="tab" id="tab"> <a class="selected" href="#">{$action_name}跳转页面</a> 
<?php if(model('user_group')->model_power('category','visit')){ ?>
<a  href="javascript:menuload('{$return_list}')">返回列表</a>
<?php } ?>
</div>
<div class="page_form">
<form action="__URL__/{$action}_save/time-<?php echo time(); ?>-ajax-true" method="post" id="form">
<div class="page_table form_table">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100" align="right">上级栏目</td>
        <td width="300">
          <select name="pid" id="pid">
            <option value="0">=====顶级栏目=====</option>
            <!--foreach:{$category_list $vo}-->
            <option <!--if:{$vo['cid']==$info['pid']}-->selected="selected"<!--{/if}--> value="{$vo.cid}">{$vo.cname}</option>
            <!--{/foreach}-->
            </select>
            &nbsp;&nbsp;<a href="javascript:;" onclick="advanced()">高级设置</a>
          </td>
        <td></td>
      </tr>
      <tr>
        <td width="100" align="right">跳转页面名称</td>
        <td width="300">
          <input name="name" type="text" class="text_value" id="name" value="{$info.name}" reg="\S" msg="跳转页面名称不能为空" />
          </td>
        <td></td>
      </tr>
      <tr class="advanced">
        <td width="100" align="right">副名称</td>
        <td width="300">
        <input name="subname" type="text" class="text_value" id="subname" value="{$info.subname}" />
        </td>
        <td></td>
      </tr>
      <tr class="advanced">
        <td width="100" align="right">跳转页面URL名称</td>
        <td width="300">
        <input name="urlname" type="text" class="text_value" id="urlname" value="{$info.urlname}" />
        </td>
        <td></td>
      </tr>
      <tr>
        <td width="100" align="right">跳转页面形象图</td>
        <td colspan="2">
          <?php echo module('editor')->get_image_upload('image1','image') ?>
          <input name="image" type="text" class="text_value" id="image" style="width:200px; float:left" value="{$info.image}"/> 
          &nbsp;&nbsp;<input type="button" id="image1" class="button_small" value="选择图片" />
        </td>
        </tr>
      <tr>
        <td width="100" align="right">跳转到</td>
        <td width="300">
        <input name="url" type="text" class="text_value" id="url" value="{$jump_info.url}" />
        </td>
        <td>URL链接，支持标签</td>
      </tr>
      <tr class="advanced">
        <td width="100" align="right">跳转页面显示</td>
        <td width="300">
          <?php if(!isset($info['show'])){ $info['show']=1; } ?>
          <input name="show" type="radio" value="1" <!--if:{$info['show']==1}-->checked="checked"<!--{/if}--> />
          显示
          &nbsp;&nbsp;
          <input name="show" type="radio" value="0" <!--if:{$info['show']==0}-->checked="checked"<!--{/if}--> />
          隐藏
          </td>
        <td>控制跳转页面调用的显示与隐藏</td>
      </tr>
      <tr>
        <td width="100" align="right">栏目顺序</td>
        <td width="300">
        <input name="sequence" type="text" class="text_value" id="sequence" value="{$info.sequence isset="0"}" />
        </td>
        <td>数字越大越在前面</td>
      </tr>
      <!--hook-->
        <?php module('common')->plus_hook('category','edit_tpl',$info);  ?>
      <!--hook end-->
      
    </table>
</div>
<?php if(model('user_group')->model_power('category','add')||model('user_group')->model_power('category','edit')){ ?>
<!--普通提交-->
<div class="form_submit">
<input name="cid" type="hidden" value="{$info.cid}" />
<input name="file_id" id="file_id" type="hidden" value="{$file_id}" />
<button type="submit" class="button">保存</button> 
</div>
<?php } ?>
</form>
</div>
</div>
{include file="category/common"}